import { post, get, put } from '@/plugins/request'


// 获取订单价格
export const getOrderPrice = (params) => get('/api/order/get_price' , params)

// 上传图片uploadFile
export const uploadFile = (params,config) => post('/api/upload/file',params,config)

// 提交订单获取报销地点
export const getServiceAgency = (params) => get('/api/order/get_all_agency' , params)

// 提交订单
export const applyOrder = (params) => post('/api/order', params)

// 获取订单数据
export const getOrder = (params) => get('/api/order', params)

// 获取订单详情
export const getOrderInfo = (params) => get('/api/order/order_info', params)

// 补充订单信息
export const orderSupplement = (params) => post('/api/order/supplement', params)

// 用户确认结单
export const orderConfirm = (params) => put('/api/order/user_confirm', params)
// 取消订单
export const orderCancel = (params) => put('/api/order/cancel_order', params)


//代报员接单
export const repOrders = (params) => put('/api/order/errands_order',params)

// 代报员退回订单
export const orderBack = (params) => put('/api/order/return_order', params)

//上传签字文件
export const repUpSignature = (params) => post('/api/order/update_order',params)

// 获取订单取消原因
export const getOrderCancelReason = (params) => get('/api/order/get_cancel_reason', params)

//代报员确认订单信息
export const trueOrderMsg = (params) => put('api/order/errands_confirm',params)

